home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / IShield for Visual C++ 6.0 / DATA1.CAB / Include_Files / SDINT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-20  |  8.2 KB  |  201 lines

  1.  
  2.  /*=======================================================================*/
  3.  /*                                                                       */
  4.  /*           (c) InstallShield Software Corporation (1996-1997)          */
  5.  /*            (c)  InstallShield Corporation  (1990-1996)                */
  6.  /*                       Schaumburg, Illinois 60173                      */
  7.  /*                          All Rights Reserved                          */
  8.  /*                           InstallShield (R)                           */
  9.  /*                                                                       */
  10.  /*   File    : sdint.h                                                   */
  11.  /*                                                                       */
  12.  /*   Purpose : This file contains the internal declarations necessary    */
  13.  /*             for operations under script dialogs.                      */
  14.  /*                                                                       */
  15.  /*=======================================================================*/
  16.  
  17.  
  18.  //
  19.  // Pre-defined script dialog constants
  20.  //
  21.  
  22.         // Dialog names and customization interface keys
  23. #define SD_DLG_REGISTERUSEREX           "SdRegisterUserEx"
  24. #define SD_DLG_REGISTERUSER             "SdRegisterUser"
  25. #define SD_DLG_CONFIRMREGISTRATION      "SdConfirmRegistration"
  26. #define SD_DLG_CONFIRMNEWDIR            "SdConfirmNewDir"
  27. #define SD_DLG_ASKDESTPATH              "SdAskDestPath"
  28. #define SD_DLG_WELCOME                  "SdWelcome"
  29. #define SD_DLG_SHOWINFOLIST             "SdShowInfoList"
  30. #define SD_DLG_SELECTFOLDER             "SdSelectFolder"
  31. #define SD_DLG_SETUPTYPE                "SdSetupType"
  32. #define SD_DLG_SETUPTYPEEX              "SdSetupTypeEx"
  33. #define SD_DLG_SHOWANYDIALOG            "SdShowAnyDialog"
  34. #define SD_DLG_DISPLAYTOPICS            "SdDisplayTopics"
  35. #define SD_DLG_SHOWMSG                  "SdShowMsg"
  36. #define SD_DLG_ASKOPTIONSLIST           "SdAskOptionsList"
  37. #define SD_DLG_OPTIONSBUTTONS           "SdOptionsButtons"
  38. #define SD_DLG_BITMAP                   "SdBitmap"
  39. #define SD_DLG_SHOWFILEMODS             "SdShowFileMods"
  40. #define SD_DLG_SHOWDLGEDIT1             "SdShowDlgEdit1"
  41. #define SD_DLG_SHOWDLGEDIT2             "SdShowDlgEdit2"
  42. #define SD_DLG_SHOWDLGEDIT3             "SdShowDlgEdit3"
  43. #define SD_DLG_ASKOPTIONS               "SdAskOptions"
  44. #define SD_DLG_COMPONENTDIALOG          "SdComponentDialog"
  45. #define SD_DLG_COMPONENTDIALOG2         "SdComponentDialog2"
  46. #define SD_DLG_COMPONENTMULT            "SdComponentMult"
  47. #define SD_DLG_COMPONENTDIALOGADV       "SdComponentDialogAdv"
  48. #define SD_DLG_PRODUCTNAME              "SdProductName"
  49. #define SD_DLG_LICENSE                  "SdLicense"
  50. #define SD_DLG_STARTCOPY                "SdStartCopy"
  51. #define SD_DLG_FINISHREBOOT             "SdFinishReboot"
  52. #define SD_DLG_FINISH                   "SdFinish"
  53.  
  54.         // internal functions
  55. #define SD_DLG_COMPONENTDIALOGEX        "SdComponentDialogEx"
  56.  
  57.  //
  58.  // Script dialog global variables
  59.  //
  60.  
  61.  BOOL   bSdInit;           // indicates if the sd dialogs are initialized
  62.  STRING szSdProduct;       // global name of product
  63.  STRING szAppKey[200];     // name created to record/read data during silent mode
  64.  STRING szSdStr_NotEnoughSpace[ _MAX_STRING ]; // error message
  65.  BOOL   bInstall16;        // InstallShield executing is 16 bits
  66.  BOOL   bSdShowMsgUsed;    // Is set to TRUE if the SdShowMsg is enabled
  67.  
  68.         // counters for unique recording names
  69.  NUMBER nSdAskDestPath;
  70.  NUMBER nSdRegisterUserEx;
  71.  NUMBER nSdRegisterUser;
  72.  NUMBER nSdConfirmRegistration;
  73.  NUMBER nSdConfirmNewDir;
  74.  NUMBER nSdShowDlgEdit1;
  75.  NUMBER nSdShowDlgEdit2;
  76.  NUMBER nSdShowDlgEdit3;
  77.  NUMBER nSdShowAnyDialog;
  78.  NUMBER nSdDisplayTopics;
  79.  NUMBER nSdWelcome;
  80.  NUMBER nSdShowInfoList;
  81.  NUMBER nSdSelectFolder;
  82.  NUMBER nSdSetupType;
  83.  NUMBER nSdSetupTypeEx;
  84.  NUMBER nSdAskOptionsList;
  85.  NUMBER nSdShowFileMods;
  86.  NUMBER nSdAskOptions;
  87.  NUMBER nSdComponentDialog;
  88.  NUMBER nSdComponentDialog2;
  89.  NUMBER nSdComponentMult;
  90.  NUMBER nSdBitmap;
  91.  NUMBER nSdOptionsButtons;
  92.  NUMBER nSdComponentDialogAdv;
  93.  NUMBER nSdLicense;
  94.  NUMBER nSdStartCopy;
  95.  NUMBER nSdFinishReboot;
  96.  NUMBER nSdFinish;
  97.  
  98.  typedef  _sdRECT
  99.    begin
  100.      INT left;
  101.      INT top;
  102.      INT right;
  103.      INT bottom;
  104.    end;
  105.  
  106.  typedef  _sdSIZE
  107.    begin
  108.      INT cx;
  109.      INT cy;
  110.    end;
  111.  
  112.         // constants for Windows interaction
  113. #define GWW_ID                 -12
  114. #define WM_SETSTYLE            1028
  115. #define WM_SETSTYLE_32         0x00F4
  116. #define WM_GETFONT             0x0031
  117. #define WM_SHOW                5
  118. #define WM_HIDE                0
  119. #define BS_AUTORADIOBUTTON     9
  120. #define LB_GETCARETINDEX       1056
  121. #define LB_GETCARETINDEX_32    0x019F
  122. #define LB_GETTEXT             1034
  123. #define LB_GETTEXT_32          0x0189
  124. #define LB_SETSEL              1030
  125. #define LB_SETSEL_32           0x0185
  126.  
  127.  //
  128.  // Supported script dialog functions
  129.  //
  130.  
  131.  // Global generic prototypes (sdint.rul)
  132.  prototype SdIsStdButton( NUMBER );
  133.  prototype SdDoStdButton( NUMBER );
  134.  prototype SdGeneralInit( STRING, NUMBER, NUMBER, STRING );
  135.  prototype SdInit();
  136.  prototype SdUnInit();
  137.  prototype SdError( INT, STRING );
  138.  prototype SdCloseDlg( INT, BYREF INT, BYREF BOOL );
  139.  prototype SdDiskSpace( BYREF STRING, BYREF STRING, STRING, BYREF BOOL );
  140.  prototype SdSetStatic( STRING, INT, STRING );
  141.  prototype SdGetTextExtent( INT, STRING, INT );
  142.  prototype SdPlugInProductName( STRING, NUMBER, STRING, NUMBER, NUMBER );
  143.  prototype SdEnablement( HWND );
  144.  prototype SdMakeName( BYREF STRING, STRING, STRING, BYREF NUMBER );
  145.  
  146.  // Local function prototypes
  147.  prototype SdRegEnableButton( INT, INT, BYREF STRING, BYREF STRING );
  148.  prototype SdRegExEnableButton( INT, INT, BYREF STRING, BYREF STRING, BYREF STRING );
  149.  prototype SdOptionSetState( INT, INT );
  150.  prototype SdOptionInit( STRING, INT, STRING, INT, INT );
  151.  prototype SdComponentAdvInit( STRING, INT, STRING, INT );
  152.  prototype SdComponentAdvUpdateSpace( STRING, STRING, STRING, INT );
  153.  prototype SdComponentAdvCheckSpace( STRING, STRING, STRING );
  154.  prototype SdComponentDlgCheckSpace( STRING, STRING, STRING );
  155.  prototype SdUpdateComponentSelection( STRING, STRING, NUMBER );
  156.  prototype SdComponentDialogEx( STRING, NUMBER, NUMBER, STRING, STRING );
  157.  prototype SdGetItemName( BYREF STRING );
  158.  prototype SdOptionsButtonsInit( STRING, NUMBER, NUMBER, NUMBER );
  159.  prototype SdSetSequentialItems( STRING, NUMBER, NUMBER, NUMBER );
  160.  prototype SdFinishInit32( STRING, NUMBER, NUMBER );
  161.  prototype SdRemoveEndSpace( BYREF STRING );
  162.  prototype SdGetUserCompanyInfo( BYREF STRING, BYREF STRING );
  163.  prototype SdCreateComponentView( NUMBER, NUMBER, STRING, STRING );
  164.  prototype SdSetupTypeFromDisplayName( BYREF STRING, STRING, LIST, LIST );
  165.  prototype SdDisplayNameFromSetupType( BYREF STRING, STRING );
  166.  prototype BOOL SdIsShellExplorer();
  167.  
  168. #ifndef _WIN_PROTOTYPES
  169. #define _WIN_PROTOTYPES 1
  170.  
  171.  // Necessary Windows API prototypes
  172.  
  173.   prototype  HWND GDI.SelectObject( HWND, HWND );
  174.   prototype  BOOL GDI.GetTextExtentPoint( HWND, STRING, INT, POINTER );
  175.   prototype  BOOL USER.EnableWindow( HWND, SHORT );
  176.   prototype   INT USER.GetClassName( HWND, POINTER, INT );
  177.   prototype  HWND USER.GetDC( HWND );
  178.   prototype  HWND USER.GetDlgItem( HWND, INT );
  179.   prototype  HWND USER.GetFocus();
  180.   prototype  LONG USER.GetWindowLong( HWND, INT );
  181.   prototype       USER.GetWindowRect( HWND, POINTER );
  182.   prototype SHORT USER.GetWindowWord( HWND, INT );
  183.   prototype  BOOL USER.IsIconic( HWND );
  184.   prototype  BOOL USER.IsWindow( HWND );
  185.   prototype  BOOL USER.IsWindowEnabled( HWND );
  186.   prototype   INT USER.MoveWindow( HWND, INT, INT, INT, INT, INT );
  187.   prototype   INT USER.ReleaseDC( HWND, HWND );
  188.   prototype  HWND USER.SetFocus( HWND );
  189.   prototype       USER.SetWindowText( HWND, STRING );
  190.   prototype   INT USER.ShowWindow( HWND, SHORT );
  191.  
  192.   prototype  INT  USER.LoadString( INT, INT, STRING, INT );
  193.   prototype  HWND KERNEL.GetModuleHandle( STRING );
  194.   prototype       USER.GetClientRect( HWND, POINTER );
  195.   prototype   INT USER.SetWindowPos( HWND, INT, INT, INT, INT, INT, INT );
  196.   prototype  BOOL USER.PostMessage( HWND, SHORT, SHORT, LONG );
  197.   prototype   INT USER.ShowCursor( SHORT );
  198.   prototype  BOOL USER.SystemParametersInfo( HWND, INT, POINTER , INT );
  199.  
  200. #endif
  201.